//
//  StoryboardUtil.h
//  LZCloudApp
//
//  Created by chewyong on 16/1/15.
//  Copyright © 2016年 isoftstone. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

/**
 * StoryboardUtil类提供了一些方便的方法来获取Storyboard和其控制器
 */
@interface StoryboardUtil : NSObject

/**
 * 通过名称获取storyboard对象
 * @param stroyboardName storyboard名称，.stroyboard前的字符串
 * @return 返回对应的UIStoryboard对象
 */
+ (UIStoryboard *)storyboardWithName:(NSString *)stroyboardName;

/**
 * 通过名称获取storyboard的入口控制器
 * @param stroyboardName storyboard名称，.stroyboard前的字符串
 * @return 返回对应的UIViewController对象
 */
+ (UIViewController *)storyboardInitialVCWithName:(NSString *)stroyboardName;

/**
 * 通过stroyboardName和storyboardId获取指定的控制器
 * @param stroyboardName storyboard名称，.stroyboard前的字符串
 * @param storyboardId storyboard标示，用于获取storyboard中的控制器
 * @return 返回对应的UIViewController对象
 */
+ (UIViewController *)storyboardVCWithName:(NSString *)stroyboardName identifier:(NSString *)storyboardId;

@end
